
#include <string.h>
#include <jni.h>
#include <android/log.h>
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, "shuai", __VA_ARGS__)
jobjectArray
Java_com_handpay_zztong_hp_config_ZZTConfig_stringsFromJNI( JNIEnv* env,
                                                  jobject thiz )
{
	  jstring str;
	  jsize len = 21;
	  jobjectArray args = 0;
	  char* sa[] = {  "http://safeapp.hpay.sandpay.com.cn:80/hpaMicroView/",
					  "FASTBILL",
					  "3.7",
					  "9411bb0a7ad5cf33dbd9ba51a5feedabca6e9874042bac5b2273173c6f2e914e97df6b2c19f91abe2ef767c8ca3204caa29831e9c7c2dc0a0f35c31c9cce37fe8d3fb2ac9c4296e14104b27cef1a47db218bb213b880617f8e449d0f0310dc89627e695114fb197184afa415903be9e92a3b39b553ae078dc42946c81ab06105",
					  "10001",
					  "https://www.handmart.cn/web/FASTYH/ServiceAgreements.html",
					  "https://www.handmart.cn/web/FASTYH/Useinfo.html",
					  "https://www.handmart.cn/web/FASTYH/TranserInfo.html",
					  "https://www.handmart.cn/web/FASTYH/kuaisuzz.html",
					  "https://www.handmart.cn/web/newzzt/2.0/tmzz.html",
					  "http://202.101.25.178:8080/Gateway/MobilePayment",
					  "http://202.96.255.146:8080/Gateway/MobilePayment",
					  "VI01",
					  "VI02",
					  "10.48.192.19",
                      "safeapp.hpay.sandpay.com.cn",
					  "1",
					  "FASTYH",
					  "http://mobklf.99wuxian.com",
					  "http://klfqb.99play.cn/basic/game99Qb/pages/iphone/qb_index.html",
					  "http://klfgame.99play.cn/basic/gamecardapp/pages/iphone/game99.recharge.html"};

	  int i=0;
	  args = (*env)->NewObjectArray(env,len,(*env)->FindClass(env,"java/lang/String"),0);
	  for( i=0; i < len; i++ )
	  {
	  str = (*env)->NewStringUTF(env,sa[i] );
	  (*env)->SetObjectArrayElement(env,args, i, str);
	  }
	  return args;
}
/*
static JNINativeMethod gMethods[] = {
    {"stringsFromJNI",   "()[Ljava/lang/String;", (void *)Java_com_handpay_zztong_hp_config_ZZTConfig_stringsFromJNI}
	};
static int register_methods(JNIEnv *env){
	int methodsLenght = sizeof(gMethods) / sizeof(gMethods[0]);
	return (*env)->RegisterNatives(env,"com/handpay/zztong/hp/config/ZZTConfig", gMethods, methodsLenght);
} 
jint JNI_OnLoad(JavaVM* vm, void* reserved)
{
  JNIEnv* env = NULL; 
  jint result = -1; 
  if ((*vm)->GetEnv(vm, (void**) &env, JNI_VERSION_1_4) != JNI_OK) 
  {
	LOGV("GetEnv error!");
    return -1; 
  }
  //assert(env != NULL); 
  if (register_methods(env) < 0) 
  {
    LOGV("register_methods error!");
    //注册
    return -1; 
  } 
  result = JNI_VERSION_1_4; 
  return result;
}*/


